package com.lc.afbx.activity;

import android.os.Bundle;
import android.view.View;

import com.lc.afbx.BaseApplication;
import com.lc.afbx.R;
import com.lc.afbx.widget.GuideView;
import com.zcx.helper.pager.Guide;

/**
 * Created by Administrator on 2016/3/14.
 */
public class GuideActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_guide);

        GuideView guideView = (GuideView) findViewById(R.id.guide_guide_view);

        guideView.addLayoutId(R.layout.item_guide_one, R.layout.item_guide_two, R.layout.item_guide_three);


        guideView.setOnEndListener(R.id.aaaaa, new Guide.OnEndListener() {

            @Override
            public void onEnd() {

                BaseApplication.BasePreferences.saveIsGuide(true);

                startVerifyActivity(NavigationActivity.class);

                finish();

            }

        });

    }

}
